package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.ShopCarItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopCarItemMapper {
    int deleteByPrimaryKey(Long id);


    ShopCarItem selectByPrimaryKey(Long id);

    List<ShopCarItem> selectAll();

    int updateByPrimaryKey(ShopCarItem record);

    List<ShopCarItem> selectByShopCarId(Long id);

    void updateByPrimaryKey(@Param("itemId") Long itemId, @Param("totalNumber") int totalNumber);



    int insert(ShopCarItem shopCarItem);

    void deleteItem(Long id);

    List<ShopCarItem> queryProductsByIds(@Param("pids")Long [] pids, @Param("id") Long id);
}